<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
		<title>视频课程窗口</title>
		<link rel="stylesheet" href="../../css/base.css">
	</head>
	<body>
		<div class="base_style_color " id='BarAppearance' style="height: 22px;width: 100%"></div>
		<div class="base_navigation_bar base_style_color base_navigation_item_bar">
			<a class="base_left_item" href="#" onclick="backClick()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
			<span id="titl"></span>
			<a class="base_right_item base_hide_item"> </a>
		</div>
	</body>
	<script type="text/javascript" src="../../script/jquery.min.js"></script>
	<script type="text/javascript" src="../../script/requestTool.js"></script>
	<script type="text/javascript">
		var message;
		apiready = function() {
			//			SendBehaviorTrajectoriesNotifi1('0', '技能课程列表详情页', '130', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title);
			if (api.pageParam.openType == "skillCourse") {//技能课程
				message = "学习技能课程" + "《" + api.pageParam.coursename + "》" + "</br>" + api.pageParam.quarter_name + "认证";
				SendBehaviorTrajectoriesNotifi_Authentication('0', '技能课程列表详情页', '130', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title, message);
			} else if (api.pageParam.openType == "vocation") {//职业课程
				message = "学习职业道德" + "《" + api.pageParam.coursename + "》" + "</br>" + api.pageParam.quarter_name + "认证";
				SendBehaviorTrajectoriesNotifi_Authentication('0', '职业道德课程列表详情页', '136', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title, message);
			} else if (api.pageParam.openType == "vocation") {//安全教育
				message = "学习安全教育" + "《" + api.pageParam.coursename + "》" + "</br>" + api.pageParam.quarter_name + "认证";
				SendBehaviorTrajectoriesNotifi_Authentication('0', '安全教育课程列表详情页', '134', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title, message);
			}
			api.setScreenOrientation({
				orientation : 'portrait_up'
			});
			$('#titl').text(api.pageParam.coursename);
			setupSubframe();
		}
		function setupSubframe() {
			var y = $('.base_navigation_bar').height() + 22;
			api.openFrame({
				name : 'VideoCourseFrame',
				url : 'VideoCourseFrame.html',
				rect : {
					x : 0,
					y : y,
					w : 'auto',
					h : 'auto'
				},
				pageParam : {
					courseid : api.pageParam.courseid,
					coursename : api.pageParam.coursename,
					img : api.pageParam.imgurl
				},
				bounces : false,
				vScrollBarEnabled : true,
				hScrollBarEnabled : false
			});
		}

		function backClick() {
			//			SendBehaviorTrajectoriesNotifi1('1', '技能课程列表详情页', '130',api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname,  document.title);
			if (api.pageParam.openType == "skillCourse") {//技能课程
				message = "学习技能课程" + "《" + api.pageParam.coursename + "》" + "</br>" + api.pageParam.quarter_name + "认证";
				SendBehaviorTrajectoriesNotifi_Authentication('1', '技能课程列表详情页', '130', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title, message);
			} else if (api.pageParam.openType == "vocation") {//职业课程
				message = "学习职业道德" + "《" + api.pageParam.coursename + "》" + "</br>" + api.pageParam.quarter_name + "认证";
				SendBehaviorTrajectoriesNotifi_Authentication('1', '技能课程列表详情页', '136', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title, message);
			} else if (api.pageParam.openType == "vocation") {//安全教育
				message = "学习安全教育" + "《" + api.pageParam.coursename + "》" + "</br>" + api.pageParam.quarter_name + "认证";
				SendBehaviorTrajectoriesNotifi_Authentication('1', '安全教育课程列表详情页', '134', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title, message);
			}
			api.closeWin();
		}
	</script>
</html>